package com.earthchen.hbase.hos.core.util;


import java.util.UUID;

import org.springframework.util.DigestUtils;

/**
 * 工具类
 *
 * @author: EarthChen
 * @date: 2018/07/31
 */
public class CoreUtil {

    public final static String sys_user = "SuperAdmin";

    /**
     * 获取uuid字符串
     */
    public static String getUUIDStr() {
        return UUID.randomUUID().toString().replace("-", "");
    }

    /**
     * md5加密密码
     *
     * @param password
     * @return
     */
    public static String getMdPassword(String password) {
        return DigestUtils.md5DigestAsHex(password.getBytes());
    }
}
